package com.hifar.plat.maindatasource.service;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
@DS("collectdb")
public interface ICollectdbDataSourceService {
	Map<String, Object> selectOne(String sql, Object... args);

	List<Map<String, Object>> selectList(String sql, Object... args);

	String getDbType();

	int selectCount(String sql, Object... args);

	boolean insert(String sql, Object... args);

	boolean delete(String sql, Object... args);

	<E extends IPage<Map<String, Object>>> E selectPage(E page, String sql, Object... args);

	List<Map<String, Object>> nativeSql(@Param("nativeSql") String nativeSql);

	boolean update(String sql, Object... args);
}
